package nowcoder;

import java.util.Scanner;

/**
 * @author： hmm
 * @date： 2020/7/15 9:18
 * @description： 最小公倍数
 * @modifiedBy：
 */
public class MinCommonMultiple {

    public static int getResult(int a, int b) {
        //首先按照大小给两个数排序 保证a>b
        if (a < b) {
            int temp = a;
            a = b;
            b = temp;
        }
        int k;
        while (b != 0) {
            k = a % b;
            a = b;
            b = k;
        }
        return a;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(a * b / getResult(a, b));
        }
    }
}
